﻿from tcxPy import *


def tcxPy_Init():
    print('Tips: you can initialize your global variables here.')
    print('This function will be executed once if you set `< tcxpy init = true >\'')
    print(tcxGetValueIDsInfo())


def tcxPy_User():
    print('User defined function.')
    print('This function will be executed once if you set `< tcxpy user = true >\'')
    print('Otherwise, tcxPy_Main will be executed (many times)')


def tcxPy_Fin():
    print('Tips: you can finalize your global variables here.')
    print('This function will be executed once if you set `< tcxpy fin = true >\'')
    print('Note: you do not need to finalize the global variables got from function GetVal()')


def tcxPy_Main(_i, _j, _n, _start, _end, _elapk, _k, _x, _y, _a, _txt):

    ASS_BUF = []        # used for saving ass FX lines
    TCS_BUF = []        # used for saving tcs FX raw data

    #############################
    # TODO: write your codes here #

    ass_main(ASS_BUF, SubL(_start, _end), pos(_x, _y) + K(_elapk) + K(_k), _txt)

    #############################

    return (ASS_BUF, TCS_BUF)





